<link rel="stylesheet" type="text/css" href="<?=n_css('simditor', 'simditor')?>" />

<script type="text/javascript" src="<?=n_js('simditor', 'module')?>"></script>
<script type="text/javascript" src="<?=n_js('simditor', 'hotkeys')?>"></script>
<script type="text/javascript" src="<?=n_js('simditor', 'uploader')?>"></script>
<script type="text/javascript" src="<?=n_js('simditor', 'simditor')?>"></script>

<script type="text/javascript">
$(document).ready(function() {
	var editor = new Simditor({
		textarea: $('#editor'),
		params: {},
		upload: {
			url: "<?=n_url('simditor', 'saveImg')?>",
			params: null,
			fileKey: 'upload_file',
			connectionCount: 1,
			leaveConfirm: 'Uploading is in progress, are you sure to leave this page?'
		},
	});
})
</script>